#ifndef _ESP_HAL_IIC_H_
#define _ESP_HAL_IIC_H_

#include "esp_err.h"
#include "esp_log.h"
#include "driver/i2c.h"

esp_err_t i2c_master_init(void);
esp_err_t i2c_hal_write_byte(uint8_t Device_address ,uint8_t regAddres, uint8_t data);
esp_err_t i2c_hal_read(uint8_t device_addr,uint8_t reg_addr, uint8_t *data, size_t len);
#endif
